package com.zebra.remoting.config;

import com.zebra.common.ZebraBaseMessage;
import io.netty.buffer.ByteBuf;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @Description: 进入房间需要的参数
 *
 * @Date 2020/7/8 0022
 **/
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class EmptyMessage extends ZebraBaseMessage<EmptyMessage> {

  private byte msg;

    @Override
    public void write(ByteBuf b) {
        writeByte(b, this.msg);
    }

    @Override
    public EmptyMessage read(ByteBuf b) {
        EmptyMessage message = new EmptyMessage();
        message.msg = readByte(b);
        return message;
    }

}
